package com.boarsoft.dubbo.demo;

import com.boarsoft.dubbo.demo.api.GreetingService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Consumer {
	private static ClassPathXmlApplicationContext ctx;

	public static void main(String[] args) throws NumberFormatException {
		ctx = new ClassPathXmlApplicationContext("classpath:conf/context.xml");
		System.out.println("Startup ".concat(ctx.isRunning() ? "successfully." : "failed."));
		System.out.println(ctx.getBean(GreetingService.class).SayHello("dubbo"));
	}
}
